{minimum_otp_vsn, "21.0"}.

{deps,
 [{gproc, "0.8.0"},
  {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.4"}}},
  {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.7.1"}}},
  {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.6.1"}}},
  {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.7.2"}}},
  {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.4.1"}}},
  {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v3.0.0"}}}
 ]}.

{erl_opts, [warn_unused_vars,
            warn_shadow_vars,
            warn_unused_import,
            warn_obsolete_guard,
            debug_info,
            compressed %% for edge
           ]}.

{overrides, [{add, [{erl_opts, [compressed]}]}]}.

{edoc_opts, [{preprocess, true}]}.

{xref_checks, [undefined_function_calls, undefined_functions,
               locals_not_used, deprecated_function_calls,
               warnings_as_errors, deprecated_functions
              ]}.

{cover_enabled, true}.
{cover_opts, [verbose]}.
{cover_export_enabled, true}.

{erl_first_files, ["src/emqx_logger.erl"]}.

{profiles,
 [{test,
   [{plugins, [{coveralls, {git, "https://github.com/emqx/coveralls-erl", {branch, "github"}}}]},
    {deps,
     [{bbmustache, "1.7.0"},
      {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.2.0"}}},
      {emqx_ct_helpers, {git, "https://github.com/emqx/emqx-ct-helpers", {tag, "1.2.2"}}}
     ]},
    {erl_opts, [debug_info]}
   ]}
 ]}.

